﻿<%@ Page Title="我的订单" Language="C#" MasterPageFile="~/Member/MemberMaster.master" AutoEventWireup="true" CodeFile="Shop_BuyManageOrder.aspx.cs" Inherits="Member_Shop_BuyManageOrder" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="grxixn b">
          	<div class="ninhao">
            	<p>您好：<asp:Label ID="lblUserName" runat="server" CssClass="red"></asp:Label>，欢迎进入用户中心，您目前购物车有 <asp:Label ID="lblShopCarNum" runat="server" Text="Label" CssClass="red2"></asp:Label> 款产品未购买，<asp:Label ID="Buyer_Order" runat="server" Text="Label" CssClass="red2"></asp:Label> 笔订单正在进行中。</p>
            </div>
            
            <div class="xixzhil">
            	<h2>我的订单</h2>
            </div>
            <div class="blank"></div>
           
           	  <div class="tuih_tit">
            	<h3 onclick="set('th',1,4)" id="th1" class="hover">未付款</h3>
            	<h3 onclick="set('th',2,4)" id="th2">已付款</h3>
                <h3 onclick="set('th',3,4)" id="th3">已完成</h3>
                <h3 onclick="set('th',4,4)" id="th4">退货</h3>
            </div>
            
            
            <div id="conth1" class="tuih2" >
    <asp:Repeater ID="rptOrderInfo" runat="server">
        <ItemTemplate>
            <table  border="1" width="100%" cellpadding="0" bordercolor="#f2efe9" cellspacing="0">
            <tr class="tdbg">
                <asp:HiddenField ID="hfTradeTypeID" runat="server" Value='<%#Eval("TradeType")%>' />
                    	<td colspan="3"><span class="right"><asp:ImageButton ID="btnDelOrder" runat="server" ImageUrl="/images/shanchu5.jpg" CommandName="DelOrder" CommandArgument='<%# Eval("OrderFormID") %>' OnCommand="Button_Command" OnClientClick="return confirm('确认删除所选订单吗？')" />
                    	                </span>
<img src="../images/icon1.jpg" /> 订单编号：<span class="red"><a
                        href='<%# "shop_buyorder.aspx?OrderFormNum="+Eval("OrderFormNum") %>'>
                        <%#Eval("OrderFormNum") %><asp:HiddenField ID="hfOrderFormID" runat="server" Value='<%#Eval("OrderFormID") %>' />
                        <asp:HiddenField ID="hfOrderFormNum" runat="server" Value='<%#Eval("OrderFormNum") %>' />
                    </a></span>     下订时间：<%# Eval("InputTime") == DBNull.Value ? "" : Eval("InputTime")%>  
                        <span class="red2"><%# Eval("SalerName")%></span>  电话：<%# Eval("MobilePhone")%> <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<%# Eval("OICQ")%>&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:<%# Eval("OICQ")%>:41" alt="点击这里给我发消息" title="点击这里给我发消息"></a></td>
                    </tr>
                <asp:Repeater ID="rptOrderItem" runat="server">
                    <ItemTemplate>
                    <tr>
                    	<td width="400">
                        	<span class="left imgbor"><asp:Image ID="Product_Image" runat="server" ImageUrl='<%# (Convert.ToString(Eval("ProductSmallImageUrl"))==""?"../Images/show_nopic.gif":"../"+Eval("ProductSmallImageUrl").ToString()) %>'
                                    Height="50px" Width="50px" /></span>
                           	<div class="autohei pad15">
                            	<span class="red2"><asp:HiddenField ID="hfPoductID" runat="server" Value='<%#Eval("ProductID") %>' /><asp:HyperLink ID="lbl_Name" NavigateUrl='<%# "../ShowProduct.aspx?ProductID="+Eval("ProductID") %>'
                                    runat="server" Text='<%# Eval("ProductName") %>' Target="_blank" /></span>
                            	<div class="guige">
                            	    <p>
                        	<span><asp:Literal ID="Literal1" runat="server" Text='<%#Eval("GuiGe").ToString()=="" ?  "" : Eval("GuiGe").ToString()%>' /></span><span><asp:HiddenField ID="hfOldPrice" runat="server" Value='<%#Eval("StandPrice") %>' />
                                <asp:HiddenField ID="hfNeedPresentExp" runat="server" Value='<%# Eval("NeedPresentExp") %>' />
                                ￥<asp:Literal ID="ltr_PriceOrScore" runat="server" Text='<%# Eval("Price") %>' />
                                <asp:Literal ID="ltr_OldPrice" runat="server"></asp:Literal></span><span><asp:Literal ID="lbl_Quantity" runat="server" Text='<%# Eval("Quantity") %>' />
                                <asp:HiddenField ID="hfitemCount" runat="server" Value='<%# Eval("itemCount") %>' />
                                <asp:HiddenField ID="hfOrderStatus" runat="server" Value='<%# Eval("Status") %>' />
                                <asp:HiddenField ID="hfPayStatus" runat="server" Value='<%# Eval("PayStatus") %>' />
                                <asp:HiddenField ID="hfDeliverStatus" runat="server" Value='<%# Eval("DeliverStatus") %>' /></span> <a href="#"><img src="../images/sqth.jpg" /></a>
                        </p>
                                	
                                 
                                </div>
                            </div>
                        </td>
                        <asp:Panel ID="pnlRowspan" runat="server">
                      <td width="135" rowspan='<%#Eval("itemCount") %>' align="center">
                       	 <strong class="red f14">￥318.00</strong>
                         <p class="gray">(含快递：45.00)</p> 状态：商家未发货
                         订单状态：<asp:HyperLink ID="hlStatus" runat="server" Text='<%# HKB.Web.Shop.TextFormat.GetOrderStatus(Eval("Status").ToString(),HKB.Web.Shop.TextFormat.GetReceived(Eval("OrderFormID").ToString())) %>' />
                                    <br />
                                    付款状态：<asp:Label ID="PayStatus_lable" runat="server" Text='<%# HKB.Web.Shop.TextFormat.GetPayStatus(Eval("PayStatus").ToString()) %>'></asp:Label>
                                    <br />
                                    物流状态：<asp:HyperLink ID="hlDeliverStatus" runat="server" Text='<%# HKB.Web.Shop.TextFormat.GetDeliverStatus(Eval("DeliverStatus").ToString()) %>'
                                        NavigateUrl='<%# "shop_buyorder.aspx?OrderFormNum="+Eval("OrderFormNum") %>' />
                      </td>
						<td rowspan='<%#Eval("itemCount") %>' width="220">
                        	<p>寄送至： 上海 上海市 徐汇区 龙吴路9弄5号4025室内 (李开春 收)  
电话： 13636570898</p>
							<p>客户留言：商家能便宜44元钱吗</p>
							<p><a href='<%# "shop_buyorder.aspx?OrderFormNum="+Eval("OrderFormNum") %>'>查看详情</a><br />
                                    <asp:Label ID="lblComment" runat="server" Text='<%#StrCommentStatus(Eval("OrderFormNum").ToString()) %>'></asp:Label>
                                    <br />
                                    <asp:Button ID="btnPayStatus" runat="server" PostBackUrl='<%# "~/Member/Shop_PayOrder.aspx?OrderFormNum="+ Eval("OrderFormNum") %>'
                                        Text="付款"></asp:Button>
                                    <br />
                                    <asp:Button ID="btnDeliverReturn" runat="server" Visible="false" Text="退货" PostBackUrl='<%# "~/Member/Shop_AddOrderSend.aspx?DeliverType=1&OrderFormNum="+Eval("OrderFormNum") %>'>
                                    </asp:Button>
                                    <asp:Button ID="BtnCusReceive" runat="server" CommandName="CusReceiveOrder" CommandArgument='<%# Eval("OrderFormID") %>'
                                        OnCommand="Button_Command" Text=" 签收 " OnClientClick="return confirm('系统将把支付款打给卖家帐户，确定签收吗？')" /></p>

                        </td>
                        </asp:Panel>
                    </tr>
                    
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </ItemTemplate>
    </asp:Repeater>
                  <div class="blank"></div>
                  <div class="cp_nete">
            	<asp:Literal ID="ltrPagePanel" runat="server"></asp:Literal>
          	  </div>
              <!--提交发货信息-->
            </div>
            <div id="conth2" class="tuih2" style="display:none">
				<table  border="1" width="100%" cellpadding="0" bordercolor="#f2efe9" cellspacing="0">
                	<tr class="tdbg">
                    	<td colspan="3"><img src="../images/icon1.jpg" /> 订单编号：<span class="red">199946416594623</span>     下订时间：2012年12月25日 4:00  
                        <span class="red2">云淡风轻包包专卖</span>  电话：13625489512 <a href="#"><img src="../images/rzsj_t7.jpg" /></a></td>
                    </tr>
                    <tr>
                    	<td width="400">
                        	<span class="left imgbor"><img src="../images/dd2.jpg" /></span>
                           	<div class="autohei pad15">
                            	<span class="red2">贝蒂betty boop女包正品2013新款手提斜挎两用包学院风可爱包包</span>
                            	<div class="guige">
                                	<p>
                        	<span>灰色 / M </span><span>￥159.00</span><span>1</span> <a href="#"><img src="../images/sqth.jpg" /></a>
                                  </p>
                        <p>
                        	<span>灰色 / M </span><span>￥159.00</span><span>1</span> <a href="#"><img src="../images/sqth.jpg" /></a>
                        </p>
                                </div>
                            </div>
                        </td>
                      <td width="135" rowspan="2" align="center">
                       	 <strong class="red f14">￥318.00</strong>
                         <p class="gray">(含快递：45.00)</p> 状态：商家未发货
                         
                      </td>
						<td rowspan="2" width="220">
                        	<p>寄送至： 上海 上海市 徐汇区 龙吴路9弄5号4025室内 (李开春 收)  
电话： 13636570898</p>
							<p>客户留言：商家能便宜44元钱吗</p>
							<p>提示：凡是对交易有异议，建议立刻电话或
						    者QQ在线进行沟通。</p>
                        </td>
                    </tr>
                    <tr>
                      <td width="400"><span class="left imgbor"><img src="../images/dd2.jpg" /></span>
                           	<div class="autohei pad15">
                            	<span class="red2">贝蒂betty boop女包正品2013新款手提斜挎两用包学院风可爱包包</span>
                            	<div class="guige">
                                	                        <p>
                        	<span>灰色 / M </span><span>￥159.00</span><span>1</span> <a href="#"><img src="../images/sqth.jpg" /></a>
                        </p>
                                </div>
                            </div></td>
                    </tr>
                    
                </table>
             <table  border="1" width="100%" cellpadding="0" bordercolor="#f2efe9" cellspacing="0">
                	<tr class="tdbg">
                    	<td colspan="3"><img src="../images/icon1.jpg" /> 订单编号：<span class="red">199946416594623</span>     下订时间：2012年12月25日 4:00  
                        <span class="red2">云淡风轻包包专卖</span>  电话：13625489512 <a href="#"><img src="../images/rzsj_t7.jpg" /></a></td>
                    </tr>
                    <tr>
                    	<td width="400">
                        	<span class="left imgbor"><img src="../images/dd2.jpg" /></span>
                           	<div class="autohei pad15">
                            	<span class="red2">贝蒂betty boop女包正品2013新款手提斜挎两用包学院风可爱包包</span>
                            	<div class="guige">
                                	<p>
                        	<span>灰色 / M </span><span>￥159.00</span><span>1</span> <a href="#"><img src="../images/sqth.jpg" /></a>
                                  </p>
                        <p>
                        	<span>灰色 / M </span><span>￥159.00</span><span>1</span> <a href="#"><img src="../images/sqth.jpg" /></a>
                        </p>
                                </div>
                            </div>
                        </td>
                      <td width="135" rowspan="2" align="center">
                       	 <strong class="red f14">￥318.00</strong>
                         <p class="gray">(含快递：45.00)</p>
                         	<p>状态：商家未发货<br />
快递公司：顺风 <span class="red2">[<a href="#">查询</a>]</span><br />
快递单号：4002562140155</p>
                         <div align="c enter"><a href="#"><img src="../images/qrsh.jpg" /></a></div>
                         
                      </td>
						<td rowspan="2" width="220">
                        	<p>寄送至： 上海 上海市 徐汇区 龙吴路9弄5号4025室内 (李开春 收)  
电话： 13636570898</p>
							<p>客户留言：商家能便宜44元钱吗</p>
							<p>提示：凡是对交易有异议，建议立刻电话或
						    者QQ在线进行沟通。</p>
                        </td>
                    </tr>
                    <tr>
                      <td width="400"><span class="left imgbor"><img src="../images/dd2.jpg" /></span>
                           	<div class="autohei pad15">
                            	<span class="red2">贝蒂betty boop女包正品2013新款手提斜挎两用包学院风可爱包包</span>
                            	<div class="guige">
                                	                        <p>
                        	<span>灰色 / M </span><span>￥159.00</span><span>1</span> <a href="#"><img src="../images/sqth.jpg" /></a>
                        </p>
                                </div>
                            </div></td>
                    </tr>
                    
                </table>
                  <div class="blank"></div>
                  <div class="cp_nete">
            	<ul>
                <li><a href="#">上一页</a></li>
                	<li><a href="#">1</a></li>
                    <li><a href="#">2</a></li>
                    <li><a href="#">3</a></li>
                    <li><a href="#">4</a></li>
                    <li><a href="#">下一页</a></li>
                </ul>
          	  </div>
            </div>
			<div id="conth3" class="tuih2"  >
				<table  border="1" width="100%" cellpadding="0" bordercolor="#f2efe9" cellspacing="0">
                	<tr class="tdbg">
                    	<td colspan="3">
                        	<span class="right"><a href="#"><img src="../images/shanchu5.jpg" /></a></span>
                            <img src="../images/icon1.jpg" /> 订单编号：<span class="red">199946416594623</span>     下订时间：2012年12月25日 4:00  
                        <span class="red2">云淡风轻包包专卖</span>  电话：13625489512 <a href="#"><img src="../images/rzsj_t7.jpg" /></a></td>
                    </tr>
                    <tr>
                    	<td width="330">
                        	<span class="left imgbor"><img src="../images/dd2.jpg" /></span>
                           	<div class="autohei pad15">
                            	<span class="red2">贝蒂betty boop女包正品2013新款手提斜挎两用包学院风可爱包包</span>
                            	<div class="guige">
                                	<p>
                        	<span>灰色 / M </span><span>￥159.00</span><span>1</span>
                        </p>
                        <p>
                        	<span>灰色 / M </span><span>￥159.00</span><span>1</span>
                        </p>
                                </div>
                            </div>
                        </td>
                      <td width="105" rowspan="2" align="center">
                       	 <strong class="red f14">￥318.00</strong>
                         <p class="gray">(含快递：45.00)</p></td>
						<td rowspan="2" width="320">
                        	<p>寄送至： 上海 上海市 徐汇区 龙吴路9弄5号4025室内 (李开春 收)  
电话： 13636570898</p>
							<p>客户留言：商家能便宜44元钱吗？</p>
                        </td>
                    </tr>
                    <tr>
                      <td width="330"><span class="left imgbor"><img src="../images/dd2.jpg" /></span>
                           	<div class="autohei pad15">
                            	<span class="red2">贝蒂betty boop女包正品2013新款手提斜挎两用包学院风可爱包包</span>
                            	<div class="guige">
                                	                        <p>
                        	<span>灰色 / M </span><span>￥159.00</span><span>1</span>
                        </p>
                                </div>
                            </div></td>
                    </tr>
                    
                </table>
                 <div class="blank"></div>
                  <div class="cp_nete">
            	<ul>
                <li><a href="#">上一页</a></li>
                	<li><a href="#">1</a></li>
                    <li><a href="#">2</a></li>
                    <li><a href="#">3</a></li>
                    <li><a href="#">4</a></li>
                    <li><a href="#">下一页</a></li>
                </ul>
          	  </div>
            </div>
            <div id="conth4" class="tuih2" >
				<table  border="1" width="100%" cellpadding="0" bordercolor="#f2efe9" cellspacing="0">
                	<tr class="tdbg">
                    	<td colspan="3"><img src="../images/icon1.jpg" /> 退单号：<span class="red">199946416594623</span>    退单时间：2012-12-25 4:21      <span class="red2">云淡风轻包包专卖</span>  电话：13625489512 <a href="#"><img src="../images/rzsj_t7.jpg" /></a> 
                        </td>
                    </tr>
                    <tr>
                    	<td>
                        	<span class="left imgbor"><a href="../chanpin/cpxx-1.html" target="_blank"><img src="../images/dd2.jpg" /></a></span>
                            <span class="left name"><a href="../chanpin/cpxx-1.html" target="_blank">贝蒂betty boop女包正品2013新款手提斜挎两用包学院风可爱包包</a>  </span><span class="left pric1">￥159.00</span>
                            <span class="left pric1">2</span>
                        </td>
                        <td><strong class="red f14">￥318.00
</strong></td>
						<td>
                       	  <P>当前状态：<span class="red">商家已确认</span><br />
                       	    <a href="#"><img src="../images/txkdh.jpg" /></a></P>
                        </td>
                    </tr>
                    
                </table>
                <table  border="1" width="100%" cellpadding="0" bordercolor="#f2efe9" cellspacing="0">
                	<tr class="tdbg">
                    	<td colspan="3"><img src="../images/icon1.jpg" /> 退单号：<span class="red">199946416594623</span>    退单时间：2012-12-25 4:21      <span class="red2">云淡风轻包包专卖</span>  电话：13625489512 <a href="#"><img src="../images/rzsj_t7.jpg" /></a> 
                        </td>
                    </tr>
                    <tr>
                    	<td>
                        	<span class="left imgbor"><a href="../chanpin/cpxx-1.html" target="_blank"><img src="../images/dd2.jpg" /></a></span>
                            <span class="left name"><a href="../chanpin/cpxx-1.html" target="_blank">贝蒂betty boop女包正品2013新款手提斜挎两用包学院风可爱包包</a>  </span><span class="left pric1">￥159.00</span>
                            <span class="left pric1">2</span>
                        </td>
                        <td><strong class="red f14">￥318.00
</strong></td>
						<td>
                       	  <P>当前状态：<span class="red">商家已确认</span><br />
                       	    <a href="#"><img src="../images/txkdh.jpg" /></a></P>
                        </td>
                    </tr>
                    
                </table>
                <table  border="1" width="100%" cellpadding="0" bordercolor="#f2efe9" cellspacing="0">
                	<tr class="tdbg">
                    	<td colspan="3"><img src="../images/icon1.jpg" /> 退单号：<span class="red">199946416594623</span>    退单时间：2012-12-25 4:21      <span class="red2">云淡风轻包包专卖</span>  电话：13625489512 <a href="#"><img src="../images/rzsj_t7.jpg" /></a> 
                        </td>
                    </tr>
                    <tr>
                    	<td>
                        	<span class="left imgbor"><a href="../chanpin/cpxx-1.html" target="_blank"><img src="../images/dd2.jpg" /></a></span>
                            <span class="left name"><a href="../chanpin/cpxx-1.html" target="_blank">贝蒂betty boop女包正品2013新款手提斜挎两用包学院风可爱包包</a>  </span><span class="left pric1">￥159.00</span>
                            <span class="left pric1">2</span>
                        </td>
                        <td><strong class="red f14">￥318.00
</strong></td>
						<td>
                       	  <P>当前状态：<span class="red">商家已确认</span><br />
                       	    <a href="#"><img src="../images/txkdh.jpg" /></a></P>
                        </td>
                    </tr>
                    
                </table>
                <table  border="1" width="100%" cellpadding="0" bordercolor="#f2efe9" cellspacing="0">
                	<tr class="tdbg">
                    	<td colspan="3"><img src="../images/icon1.jpg" /> 退单号：<span class="red">199946416594623</span>    退单时间：2012-12-25 4:21      <span class="red2">云淡风轻包包专卖</span>  电话：13625489512 <a href="#"><img src="../images/rzsj_t7.jpg" /></a> 
                        </td>
                    </tr>
                    <tr>
                    	<td>
                        	<span class="left imgbor"><a href="../chanpin/cpxx-1.html" target="_blank"><img src="../images/dd2.jpg" /></a></span>
                            <span class="left name"><a href="../chanpin/cpxx-1.html" target="_blank">贝蒂betty boop女包正品2013新款手提斜挎两用包学院风可爱包包</a>  </span><span class="left pric1">￥159.00</span>
                            <span class="left pric1">2</span>
                        </td>
                        <td><strong class="red f14">￥318.00
</strong></td>
						<td>
                       	  <P>当前状态：<span class="red">商家已确认</span><br />
                       	    <a href="#"><img src="../images/txkdh.jpg" /></a></P>
                        </td>
                    </tr>
                    
                </table>
                 <div class="blank"></div>
                  <div class="cp_nete">
            	<ul>
                <li><a href="#">上一页</a></li>
                	<li><a href="#">1</a></li>
                    <li><a href="#">2</a></li>
                    <li><a href="#">3</a></li>
                    <li><a href="#">4</a></li>
                    <li><a href="#">下一页</a></li>
                </ul>
          	  </div>
            </div>
          </div>
    <script type="text/javascript">
        $().ready(function () {
            $("#lm1,#lm12").addClass("red");
        });
    </script>
</asp:Content>

